package com.wwt.blog.utils;

import com.wwt.blog.pojo.SysUser;
import org.apache.tomcat.jni.Local;

public class UserThreadLocal {
    private UserThreadLocal(){}

    private static final ThreadLocal<SysUser> LOCAL=new ThreadLocal<>();
    public static SysUser get(){
        return LOCAL.get();
    }
    public static void put(SysUser user){
        LOCAL.set(user);
    }
    public static void remove(){
        LOCAL.remove();
    }
}
